package 作业.生产者与消费者案例;

public class Test {
    public static void main(String[] args) {
        Desk desk = new Desk();
        Cooker cooker = new Cooker(desk);
        Foodie foodie = new Foodie(desk);
        Thread thread1 = new Thread(cooker);
        Thread thread2 = new Thread(foodie);
        thread1.start();
        thread2.start();
    }
}
